<template>
  <div :class="!darkSkin ? 'pagination' : 'pagination dark'" ref="pagination">
    <ul>
      <li>
        <span class="iconfont icon-xiangzuo"></span>
      </li>
      <li>
        <span>1</span>
      </li>
      <li><span>2</span></li>
      <li><span>3</span></li>
      <li><span>4</span></li>
      <li><span>5</span></li>
      <li><span>6</span></li>
      <li><span>...</span></li>
      <li><span>20</span></li>
      <li>
        <span class="iconfont icon-xiangyou"></span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Pagination",
  computed: {
    darkSkin() {
      return this.$store.state.darkSkin;
    },
  },
};
</script>

<style scoped>
* {
  box-sizing: border-box;
  list-style: none;
}
.pagination {
  width: 600px;
  height: 50px;
  background-color: #fff;
  color: #646b8a;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(90, 100, 130, 0.1);
}
.pagination.dark {
  background-color: #353535;
  color: #858383;
}
.pagination ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pagination li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}
.pagination span {
  display: inline-block;
  font-size: 1rem;
  z-index: 99;
}
.pagination li:hover {
  cursor: pointer;
  color: #ffffff;
}
.pagination.dark li:hover {
  cursor: pointer;
  text-shadow: 0 0 20px rgb(0, 208, 255), 0 0 20px rgb(0, 208, 255),
    0 0 20px rgb(0, 208, 255), 0 0 20px rgb(0, 208, 255),
    0 0 20px rgb(0, 208, 255), 0 0 20px rgb(0, 208, 255),
    0 0 20px rgb(0, 208, 255), 0 0 20px rgb(0, 208, 255);
}
.pagination li:hover::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #6b5bfd;
  border-radius: 5px;
}
.pagination.dark li::before {
  background-color: transparent;
}
</style>